﻿using HT.Future.Entities;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HT.Future.Entities
{
    /// <summary>
    /// 商户
    /// </summary>
    [Table("Business")]
    public class Business : BaseEntity
    {
        /// <summary>
        /// 商户名称
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 经营范围
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 发票抬头
        /// </summary>
        public string TaxTitle { get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        public string TaxNumber { get; set; }
        /// <summary>
        /// 企业类型
        /// </summary>
        public CompanyType Type { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 注册地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        public double Lat { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        public double Lng { get; set; }
        /// <summary>
        /// 绑定商户时，推荐员工编码
        /// </summary>
        public string UserCode { get; set; }
        /// <summary>
        /// 绑定关系
        /// </summary>
        public virtual ICollection<WxUserToBusiness> WxUsers { get; set; }
    }

}
